package com.ias.agdis_r.terminalmanager.restful.base.endpoint.response;

import java.io.Serializable;
import java.util.Calendar;
import java.util.Date;

public class BaseResponseHeader implements Serializable{

	
	/**
	 * 
	 */
	private static final long serialVersionUID = 4995763992667565721L;
	
	public static final int STATUS_SUCCESS = 1;
	public static final int STATUS_FAILED = 0;
	public static final String ERRORCODE_UNLOGIN = "30001";

	// status code, 1 = success, 0 = failed
	private int status = STATUS_SUCCESS;
	private String token;
	private String errorCode;
	private String errorMessage;
	private Date currentTimestamp=Calendar.getInstance().getTime();
	
	
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public String getToken() {
		return token;
	}
	public void setToken(String token) {
		this.token = token;
	}
	public String getErrorMessage() {
		return errorMessage;
	}
	public void setErrorMessage(String errorMessage) {
		this.errorMessage = errorMessage;
	}
	public Date getCurrentTimestamp() {
		return currentTimestamp;
	}
	public void setCurrentTimestamp(Date currentTimestamp) {
		this.currentTimestamp = currentTimestamp;
	}
    public String getErrorCode() {
        return errorCode;
    }
    public void setErrorCode(String errorCode) {
        this.errorCode = errorCode;
    }
	
	

}
